<div class="fui-page order-list-page">
     <div class="fui-header">
        <div class="fui-header-left">
            <a class="back"></a>
        </div>
        <div class="title">我的订单</div>
    </div>
    <div class="fui-tab fui-tab-danger">
		 <a ng-class="{'external active':pagedata.st == 11}" ng-click="access_json('list','st=11')">全部</a>
        <a ng-class="{'external active':pagedata.st == 0}" ng-click="access_json('list','st=0')">待付款</a>
        <a ng-class="{'external active':pagedata.st == 1}" ng-click="access_json('list','st=1')">已付款</a>
        <a ng-class="{'external active':pagedata.st == 2}" ng-click="access_json('list','st=2')">待收货</a>
        <a ng-class="{'external active':pagedata.st == 3}" ng-click="access_json('list','st=3')">已完成</a>
 
    </div>
	<div class='fui-content navbar order-list' style="margin-top:0.2rem">
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem"  ng-click="access_json('/member.order_details//orderid='+item.id)">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.ordersn}}</div>
                    </div>
                    <div class="row-remark text-cancel" style="width: 4rem; font-size: 0.65rem;text-align: right;">{{item.statustitle}}</div>
                    <div class="angle"></div>
                </a> 
					<div>
						<a ng-if="item.merchid">
							<div class="fui-list-group-title lineblock bold">
								<i class="icon jinyunicon icon-dianpu"></i> {{item.merchname || '多商户'}}
								<span class="status noremark" style="font-size:0.50rem" ><i class="icon jinyunicon icon-icon-test"></i></span>
							</div>
						</a>
						<a ng-if="!item.merchid">
							<div class="fui-list-group-title lineblock bold">
								<i class="icon jinyunicon icon-dianpu"></i> 平台自营
								<span class="status noremark" style="font-size:0.50rem" ><i class="icon jinyunicon icon-icon-test"></i></span>
							</div>
						</a>
						<a href="javascript:;" class="external" ng-click="access_json('/member.order_details//orderid='+item.id)">
							<div class="fui-list goods-list">
								<div class="fui-list-media" style="">
									<img class="" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
								</div>
								<div class="fui-list-inner">
									<div class="text goodstitle towline">{{item.name}}</div>
									<div class="text" style="color:#f60;font-size:0.50rem">保证金：{{item.margin}}</div>
									<div class="text"><i class="fui-tag fui-tag-red">{{item.statusname}}</i></div>
								</div>
								<div class="fui-list-angle" style="width:3rem">
									￥<span class="marketprice">{{item.price}}元</span></div>
							</div>
						</a>
					</div>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">成交价：<span class="text-danger">￥{{item.price}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 0" class="btn btn-sm btn-default-o order-delete" href="javascript:;" ng-click="post({'id':item.id},'cancel')">取消订单</div>
					<div ng-show="item.status == 0" class="btn btn-sm btn-danger-o order-finish" ng-click="access_json('/member.payment_order//orderid='+item.id)">支付订单</div>
					<div ng-show="item.status == 2" class="btn btn-sm btn-danger-o order-finish" ng-click="access_json('/member.order/receive/orderid='+item.id)">确认收货</div>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>
<div ng-include="sys_html('common/_footer')"></div>
<div ng-include="sys_html('common/_menu')"></div>